package com.hqyj.sale.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author sdx2009
 * @since 2022-09-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sale")
public class Sale implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "sale_id", type = IdType.AUTO)
    private Integer saleId;

    /**
     * 卖出的商品名称
     */
    @TableField("sale_goods_name")
    private String saleGoodsName;

    /**
     * 卖出的商品数量
     */
    @TableField("sale_goods_nums")
    private Integer saleGoodsNums;

    /**
     * 商品单价
     */
    @TableField("sale_goods_price")
    private Integer saleGoodsPrice;

    /**
     * 商品总价
     */
    @TableField("sale_goods_price_count")
    private Integer saleGoodsPriceCount;

    /**
     * 卖出日期
     */
    @TableField(value = "sale_goods_time", fill = FieldFill.INSERT)
    private String saleGoodsTime;

    /**
     * 买家电话
     */
    @TableField("sale_buy_tele")
    private String saleBuyTele;

    /**
     * 买家邮箱
     */
    @TableField("sale_buy_email")
    private String saleBuyEmail;


}
